home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / theme_park_thriller.swf / scripts / frame_35 / DoAction.as
Text File  |  2011-09-24  |  1KB  |  39 lines

  1. funcLoadScores = function()
  2. {
  3.    var _loc5_ = new LoadVars();
  4.    _loc5_.onLoad = function(success)
  5.    {
  6.       if(success)
  7.       {
  8.          i = 0;
  9.          while(i < 10)
  10.          {
  11.             var _loc2_ = main["score" + i + "_mc"];
  12.             _loc2_.rank_txt.text = String(i + 1);
  13.             var _loc3_ = this["name" + i];
  14.             trace(_loc3_ + " " + i);
  15.             if(_loc3_ == null || _loc3_ == undefined)
  16.             {
  17.                _loc2_.name_txt.text = "AA";
  18.                _loc2_.score_txt.text = 0;
  19.             }
  20.             else
  21.             {
  22.                _loc2_.name_txt.text = this["name" + i];
  23.                _loc2_.score_txt.text = this["score" + i];
  24.             }
  25.             _loc2_._visible = true;
  26.             i++;
  27.          }
  28.       }
  29.       else
  30.       {
  31.          alert("NOMO");
  32.       }
  33.    };
  34.    var _loc6_ = _global.path + "gamepad/play/games/getGameHighScores.asp?gameID=" + _global.gameID;
  35.    _loc5_.load(_loc6_);
  36. };
  37. stop();
  38. funcLoadScores();
  39.